﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Daemon.Common.Generator
{
    public class Component
    {
        public WidgetTypeEnum Widget { get; set; }

        public string Type { get; set; }

        public string Title { get; set; }

        public string ClassName { get; set; }

        public string Bind { get; set; }

        public bool Required { get; set; }

        public string Message { get; set; }

        public string Placeholder { get; set; }

        public string Mode { get; set; }

        public string Name { get; set; }

        public List<int> Enum { get; set; }

        public List<string> EnumNames { get; set; }

        public string DataSourceName { get; set; }

        public Property Props { get; set; }
    }

    public class Property
    {
        public List<SelectOption> Options { get; set; }
    }

    public class SelectOption
    {
        public string Label { get; set; }

        public string Value { get; set; }
    }
}
